wayland: Properly initialize/finalize where we store the data_source.send fd
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 24 Jun 2015 09:27:20 +0000 (11:27 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 24 Jun 2015 14:42:06 +0000 (16:42 +0200)
commit25885ca600fffcade4f3a77019d8cca17d9ec325
tree1681587236c5b973d4a180cfd91d5c512c2134d9
parent48ea0cbe4b8bcd37958601d39b9e93be7d28fa8b
wayland: Properly initialize/finalize where we store the data_source.send fd

The fd must be closed on async_write_data_free(), but we should also
initialize it to -1 so gdk_wayland_selection_check_write() doesn't wrongly
pick the stdin fd.

https://bugzilla.gnome.org/show_bug.cgi?id=751414
gdk/wayland/gdkselection-wayland.c